package org.soar.async;

import android.os.AsyncTask;

public class GenericAsyncTask extends AsyncTask<Object, Integer, Object> {
	
	private TaskListener listener = null;
	
	public GenericAsyncTask(TaskListener listener){
		super();
		this.listener = listener;
	}

	@Override
	protected Object doInBackground(Object... params) {
		return listener.onStart(params);
	}

	@Override
	protected void onPostExecute(Object result) {
		listener.onEnd(result);
	}
}
